﻿@namespace AntDesign
@inherits AntDomComponentBase

<DialogWrapper @ref="_dialogWrapper"
               Config="@BuildDialogOptions()"
               Visible="@Visible"
               DestroyOnClose="@DestroyOnClose"
               OnAfterShow="@OnAfterDialogShow"
               OnAfterHide="@OnAfterHide"
               OnBeforeDestroy="@OnBeforeDialogWrapperDestroy"
               Style="@Style"
               Class="@Class"
               Id="@Id">
    <CascadingValue Value=@($"#ant-modal-wrap_{_dialogWrapper.Id}") Name="PopupContainerSelector">
        <CascadingValue Value="true" Name="InModal">
            <CascadingValue Value="@_dialogWrapper.Dialog.IsShow()" Name="ModalCompleteShow">
                    @ChildContent
            </CascadingValue>
        </CascadingValue>
    </CascadingValue>
</DialogWrapper>
